
package com.chinatelecom.check.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@ApiModel("CheckTask: 测评任务表")
@TableName("CHECK_TASK")
@Getter
@Setter
public class CheckTask implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="id")
	@TableId(type = IdType.AUTO)
	private Integer id;
	
	@ApiModelProperty(value="任务名称")
	@TableField(value = "NAME")
	private String name;
	
	@ApiModelProperty(value="参与任务人数")
	@TableField(value = "USER_NUM")
	private Integer userNum;
	
	@ApiModelProperty(value="量表id")
	@TableField(value = "TABLE_IDS")
	private String tableIds;
	
	@ApiModelProperty(value="备注")
	@TableField(value = "TASK_NOTE")
	private String taskNote;
	
	@ApiModelProperty(value="图片地址")
	@TableField(value = "IMAGE_URL")
	private String imageUrl;
	
	@ApiModelProperty(value="任务状态   0：创建中 1：创建完成（未发布）  2：已发布（正在执行）  3：已完成  4：已取消")
	@TableField(value = "STATUS")
	private Integer status;
	
	@ApiModelProperty(value="完成人数，用于计算进度")
	@TableField(value = "FINISH_NUM")
	private Integer finishNum;
	
	@ApiModelProperty(value="创建人")
	@TableField(value = "CREATE_BY")
	private Integer createBy;
	
	@ApiModelProperty(value="创建时间")
	@TableField(value = "CREATE_TIME")
	private Date createTime;
	
	@ApiModelProperty(value="更新人")
	@TableField(value = "UPDATE_BY")
	private Integer updateBy;
	
	@ApiModelProperty(value="更新时间")
	@TableField(value = "UPDATE_TIME")
	private Date updateTime;
	
	@ApiModelProperty(value="是否删除")
	@TableField(value = "IS_DELETED")
	private Integer isDeleted;
	
	@ApiModelProperty(value="租户ID")
	@TableField(value = "TENANT_ID")
	private Integer tenantId;
	
	@ApiModelProperty(value="组织架构id")
	@TableField(value = "SYS_ORJ_ID")
	private Integer sysOrjId;
	
	@ApiModelProperty(value="任务别名")
	@TableField(value = "NAME_ALIAS")
	private String nameAlias;
	
	@ApiModelProperty(value="开始日期")
	@TableField(value = "START_DATE")
	private Date startDate;
	
	@ApiModelProperty(value="结束日期")
	@TableField(value = "END_DATE")
	private Date endDate;
	
	@ApiModelProperty(value="分发范围类型1：分发给组织；2：分发给个体")
	@TableField(value = "SCOPE_TYPE")
	private Integer scopeType;
	


}
